/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* 头部容器样式 */
.head-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 80px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 50px;
    height: 50px;
    border-radius: 5px;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

/* 用户操作容器样式 */
.user-actions-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-section {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 100%;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 100%;
}

.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #666;
}

.username {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

/* 退出按钮样式 */
.user-actions-container .logout-btn {
    padding: 8px 15px;
    border-radius: 4px;
    border: none;
    background-color: #f5f5f5;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 0;
    white-space: nowrap;
}

.user-actions-container .logout-btn:hover {
    background-color: #e5e5e5;
}

/* 主要容器样式 */
.main-container {
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 20px;
}

/* 表单标题样式 */
.form-title {
    text-align: center;
    margin-bottom: 30px;
}

.form-title h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
}

.form-title p {
    font-size: 16px;
    color: #666;
}

/* 表单样式 */
.vehicle-form {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 表单区块样式 */
.form-section {
    margin-bottom: 30px;
}

.form-section h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

/* 表单行样式 */
.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

/* 表单组样式 */
.form-group {
    flex: 1;
    min-width: 250px;
}

.form-group.full-width {
    flex: 1 1 100%;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 500;
}

.required {
    color: #ff4444;
}

/* 表单输入框样式 */
.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="datetime-local"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.1);
}

/* 文本域样式 */
.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* 表单按钮样式 */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.cancel-btn,
.submit-btn {
    padding: 12px 30px;
    border-radius: 4px;
    border: none;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-btn {
    background-color: #f5f5f5;
    color: #666;
}

.cancel-btn:hover {
    background-color: #e5e5e5;
}

.submit-btn {
    background-color: #4CAF50;
    color: white;
}

.submit-btn:hover {
    background-color: #45a049;
}

/* 页脚样式 */
.footer {
    text-align: center;
    padding: 20px;
    margin-top: 50px;
    background-color: #fff;
    color: #666;
    font-size: 14px;
    border-top: 1px solid #eee;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .head-container {
        padding: 10px 15px;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    .main-container {
        margin: 20px auto;
        padding: 0 15px;
    }
    
    .vehicle-form {
        padding: 20px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-group {
        min-width: 100%;
    }
    
    .form-actions {
        justify-content: center;
        flex-direction: column;
    }
    
    .cancel-btn,
    .submit-btn {
        width: 100%;
    }
}